package com.my.xq.domain.entity;

import java.util.ArrayList;
import java.util.List;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;
import javax.persistence.Transient;

import com.sskj.core.entity.BaseEntity;

@Entity
@Table(name = "xq_court")
public class Court extends BaseEntity {

	private static final long serialVersionUID = 1L;

	@Column(length = 80, nullable = false, unique = true)
	private String name; // 小区名称

	@Column(nullable = false)
	private double lat; // 小区经度坐标

	@Column(nullable = false)
	private double lng; // 小区纬度坐标

	@Column(length = 120, nullable = false)
	private String address; // 小区的详细地址

	@Column(length = 20)
	private String linkman; // 小区的联系人

	@Column(length = 20)
	private String phoneno; // 小区的联系电话

	@Column(name = "courtcount", nullable = false)
	private int courtcount; // 小区总户数

	/** 委员数量 */
	@Column
	private int wyCount;

	@Transient
	private String files; // 上传图片ID集合

	@Transient
	private List<String> urlList = new ArrayList<String>();

	@Override
	public String toString() {
		return "Court [name=" + name + ", lat=" + lat + ", lng=" + lng + ", address=" + address + ", linkman=" + linkman
				+ ", phoneno=" + phoneno + "]";
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public double getLat() {
		return lat;
	}

	public void setLat(double lat) {
		this.lat = lat;
	}

	public double getLng() {
		return lng;
	}

	public void setLng(double lng) {
		this.lng = lng;
	}

	public String getAddress() {
		return address;
	}

	public void setAddress(String address) {
		this.address = address;
	}

	public String getLinkman() {
		return linkman;
	}

	public void setLinkman(String linkman) {
		this.linkman = linkman;
	}

	public String getPhoneno() {
		return phoneno;
	}

	public void setPhoneno(String phoneno) {
		this.phoneno = phoneno;
	}

	public String getFiles() {
		return files;
	}

	public void setFiles(String files) {
		this.files = files;
	}

	public List<String> getUrlList() {
		return urlList;
	}

	public void setUrlList(List<String> urlList) {
		this.urlList = urlList;
	}

	public int getCourtcount() {
		return courtcount;
	}

	public void setCourtcount(int courtcount) {
		this.courtcount = courtcount;
	}

	public int getWyCount() {
		return wyCount;
	}

	public void setWyCount(int wyCount) {
		this.wyCount = wyCount;
	}

}
